package org.example.work.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.work.mapper.SysLoginLogMapper;
import org.example.work.pojo.LoginLog;
import org.example.work.service.ILoginLogService;
import org.springframework.stereotype.Service;

/**
 * @author 顾翔宇
 * @since 2024/12/16 11：34
 * @version 1.0
 */
@Service
public class ILoginLogServiceImpl extends ServiceImpl<SysLoginLogMapper, LoginLog> implements ILoginLogService {

    /**
     * 插入登录日志
     *
     * @param loginLog 登录日志对象
     * @return 是否插入成功
     */
    @Override
    public boolean insert(LoginLog loginLog) {
        return save(loginLog);
    }
}
